import { request } from "@ruifox-cms/utils";
// 分页查询公告(采购商)
export function selectPage(params) {
  return request({
    url: "/bidding/notice/buyer/selectPage",
    method: "get",
    params,
  });
}
//新增公告
export function insertNotice(data) {
  return request({
    url: "/bidding/notice/insert",
    method: "post",
    data,
  });
}
// 根据id查询公告
export function selectById(params) {
  return request({
    url: "/bidding/notice/select",
    method: "get",
    params,
  });
}
// 修改公告的排序
export function updateSort(data) {
  return request({
    url: "/bidding/notice/updateSort",
    method: "post",
    data,
  });
}
// 修改公告
export function updateNotice(data) {
  return request({
    url: "/bidding/notice/update",
    method: "post",
    data,
  });
}
// 根据通知类型查询项目列表
export function selectListByNoticeType(params) {
  return request({
    url: "/bidding/project/selectListByNoticeType",
    method: "get",
    params,
  });
}
// 修改公告状态
export function updateNoticeState(data) {
  return request({
    url: "/bidding/notice/updateState",
    method: "post",
    data,
  });
}
// 查询公告类型
export function selectNoticeType(params) {
  return request({
      url: '/bidding/systemSetting/selectNoticeType',
      method: 'get',
      params
  })
}

